<template>
  <div id="app" v-loading="loading">
    <router-view></router-view>
  </div>
</template>

<script>
import User from '@/store/user';
export default {
  name: 'App',
  components: {

  },
  data () {
    return {
      loading: true,
    };
  },

  async created () {
    try {
      await User.initLoginState();
    } finally {
      this.loading = false;
    }
  },

};
</script>

<style>
#app {
  min-height: 100vh;
}
</style>
